import arcade

arcade.open_window(600, 600, "Drawing Example")

# 设置背景颜色
arcade.set_background_color((184, 227, 286))

# 开始画图
arcade.start_render()
# (这里放置绘图的代码)

arcade.draw_lrtb_rectangle_filled(0, 599, 90, 0, (29, 158, 49))
# 绘画山
arcade.draw_triangle_filled(150, 250, 0, 90, 300, 90, (100, 77, 46))
arcade.draw_triangle_filled(450, 250, 300, 90, 600, 90, (100, 77, 46))
# 绘制树桩
arcade.draw_rectangle_filled(50, 0, 15, 120, arcade.csscolor.SIENNA)
arcade.draw_rectangle_filled(120, 0, 15, 120, arcade.csscolor.SIENNA)
arcade.draw_rectangle_filled(190, 0, 15, 120, arcade.csscolor.SIENNA)

# 绘制树冠
arcade.draw_circle_filled(50, 80, 33, arcade.csscolor.DARK_GREEN)
arcade.draw_circle_filled(120, 80, 33, arcade.csscolor.DARK_GREEN)
arcade.draw_circle_filled(190, 80, 33, arcade.csscolor.DARK_GREEN)
# 画个太阳
arcade.draw_circle_filled(500, 550, 40, (254, 225, 93))

# 左右上下的光线
arcade.draw_line(500, 550, 400, 550, (254, 225, 93), 3)
arcade.draw_line(500, 550, 600, 550, (254, 225, 93), 3)
arcade.draw_line(500, 550, 500, 450, (254, 225, 93), 3)
arcade.draw_line(500, 550, 500, 650, (254, 225, 93), 3)

# 对角光线
arcade.draw_line(500, 550, 550, 600, (254, 225, 93), 3)
arcade.draw_line(500, 550, 550, 500, (254, 225, 93), 3)
arcade.draw_line(500, 550, 450, 600, (254, 225, 93), 3)
arcade.draw_line(500, 550, 450, 500, (254, 225, 93), 3)
# 绘制房子
arcade.draw_rectangle_filled(400, 60, 90, 70, (170, 170, 225))
arcade.draw_triangle_filled(400, 160, 355, 95, 445, 95, (255, 255, 0))
arcade.draw_rectangle_filled(370, 70, 20, 15, (255, 255, 225))
arcade.draw_rectangle_filled(400, 45, 30, 40, (255, 255, 255))
# 绘画白云
arcade.draw_circle_filled(100, 450, 33, (255, 255, 255))
arcade.draw_circle_filled(120, 430, 33, (255, 255, 255))
arcade.draw_circle_filled(80, 430, 33, (255, 255, 255))
arcade.draw_circle_filled(400, 380, 33, (255, 255, 255))
arcade.draw_circle_filled(380, 360, 33, (255, 255, 255))
arcade.draw_circle_filled(420, 360, 33, (255, 255, 255))




# 结束画图
arcade.finish_render()

# 保持窗口
arcade.run()
